import fitz

def extract_text_from_pdf(pdf_path):
    with open(pdf_path, 'rb') as file:
        doc = fitz.open(pdf_path)
        content = ''
        for page in doc:
            content += page.get_text()
        doc.close()
        return content


# 使用函数
path = 'c:/Tmp/credit/2025032916005323784845.pdf'
text = extract_text_from_pdf(path)
print(text)